<template>
  <div>
    <!-- <router-link to="/game" @click="Loading"><button>开始游戏</button></router-link> -->
    <!-- <button @click="Loading">开始游戏</button> -->
    <el-button
    element-loading-text="游戏加载中"
    type="primary"
    @click="Loading"
    v-loading.fullscreen.lock="isGameStart">
    开始游戏
  </el-button>
  </div>
</template>

<script>
export default {
  data(){
    return{
      isGameStart:false
    }
  },
  methods:{
    Loading(){
      this.isGameStart = true
      setTimeout(() => {
        this.isGameStart = false
        this.$router.push('/game')
      },3000)
    }
  }
}
</script>

<style>

</style>